import request from '@/utils/request'

// 列表
const demonstrationReportList = function (params = {}) {
  return request({
    url: '/zy-api/api/certificateReport/getList',
    method: 'post',
    data: params
  })
}

// 新增
const addDemonstrationReport = function (params = {}) {
  return request({
    url: '/zy-api/api/certificateReport/add',
    method: 'post',
    data: params
  })
}

// 编辑
const editDemonstrationReport = function (params = {}) {
  return request({
    url: '/zy-api/api/certificateReport/update',
    method: 'post',
    data: params
  })
}

// 资质单位选项
const qualificationList = function (params = {}) {
  return request({
    url: '/zy-api/api/certificateReport/qualification',
    method: 'post',
    data: params
  })
}

// 导出
const exportDemonstrationReportList = function (params = {}) {
  return request({
    url: '/zy-api/api/certificateReport/export',
    method: 'post',
    data: params
  })
}

export {
  demonstrationReportList,
  addDemonstrationReport,
  editDemonstrationReport,
  qualificationList,
  exportDemonstrationReportList
}